package com.javafactroy.kunlong.bip;

import com.alibaba.druid.spring.boot.autoconfigure.DruidDataSourceAutoConfigure;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;

import com.javafactroy.kunlong.bip.icp.common.consts.AppType;
import com.javafactroy.kunlong.bip.icp.context.AppContext;
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;

@SpringBootApplication(exclude = {DruidDataSourceAutoConfigure.class, DataSourceAutoConfiguration.class})
@AppType
public class IcpAppl {

    public static void main(String[] args) throws Exception {
        AppContext.init(IcpAppl.class);

        try {
            SpringApplication.run(IcpAppl.class, args);

        } catch (Exception e) {
            e.printStackTrace();
        }
    }
}
//    yum install psmisc -y
//    killall -9 nginx
